@extends('home.layout.demo')
 <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\moco.min.css')}}" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\a.css')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\js\a.css')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\share_style0_16.css')}}" />
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\layer.css')}}" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\saved_resource')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\base.css')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\common-less.css')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\Personal\css\jquery.Jcrop.min.css')}}" type="text/css" /> 
  <!-- Bootstrap --> 
  <link href="{{asset('homeCSS\dist\css\bootstrap.min.css')}}" rel="stylesheet" /> 
  <link href="{{asset('homeCSS\dist\css\docs.min.css')}}" rel="stylesheet" /> 
  <!-- http://v3.bootcss.com/assets/css/docs.min.css --> 
  <!-- jQuery (necessary for Bootstrap's JavaScript plugins) --> 
  <script src="{{asset('homeCSS\Personal\js\jquery.js')}}"></script> 
  <script src="{{asset('homeCSS\dist\js\jquery-1.12.4.min.js')}}"></script> 
  <script src="{{asset('homeCSS\Personal\js\bootstrap-paginator.min.js')}}"></script> 
  <!-- Include all compiled plugins (below), or include individual files as needed --> 
  <script src="{{asset('homeCSS\dist\js\bootstrap.min.js')}}"></script>  
  <!-- 
<link rel="stylesheet" href="/static/component/logic/login/login-regist.css" type="text/css" />
<link rel="stylesheet" href="/static/css/settings.css" type="text/css" />
--> 
  <link rel="stylesheet" href="{{asset('homeCSS\css\common-less(1).css')}}" type="text/css" /> 
  <link rel="stylesheet" href="{{asset('homeCSS\css\profile-less.css')}}" type="text/css" /> 
  
 
  <div id="main" style='background: #fff;margin-top:20px;'> 
   <div class="settings-cont clearfix" > 
    <div class="setting-left l" > 
     <div class="avator-wapper"> 
      
       @foreach($poters as $k=>$v)

      <div class="avator-mode" id='zzzz'> 
       <img  src=" <?php foreach ($poters as $poter) {echo $poter->portrait;}?> " width="92" height="92" /> 

        <div class="update-avator" style="top:90px;" id='qqqq'> 
        <p><a href="javascript:void(0);" class="js-avator-link"><button class="btn btn-link" data-toggle="modal" data-target="#myModal1">
         更换头像
        </button></a></p> 
       </div> 
      </div> 
      <center
       <p>我的积分:</p> {{$v->score}} 
       <?php if(empty($v->vip)){?>
         <p>   <img src="{{asset('homeCSS\img\QQ图片20170404165059.jpg')}}" </p>
            <button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModalzxc">开通vip'</button>
           <!-- vip开通 -->
<div class="modal fade" id="myModalzxc" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title" id="myModalLabel">vip充值</h4>
      </div>
      <div class="modal-body">
          

<!-- 月份选择-->
<ul class="nav nav-tabs">
  <li><a href="#home" data-toggle="tab">一个月</a></li>
  <li><a href="#profile" data-toggle="tab">两个月</a></li>
  <li><a href="#messages" data-toggle="tab">半年</a></li>
  <li><a href="#settings" data-toggle="tab">一年</a></li>
</ul>
<!--二维码-->
<div class="tab-content">
  <div class="tab-pane active" id="home">
  <center>
    <img src="{{asset('homeCSS\img\1491358301973.jpg')}}" width='300px;' alt="">
  </center>
      <a class="btn btn-warning" href="/geren/vip?id={{$v->uid}}&vip=<?php echo time()+2592000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="profile">
  <center>
    <img src="{{asset('homeCSS\img\1491358329099.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/vip?id={{$v->uid}}&vip=<?php echo time()+5184000?>"  title="确定">确定</a> 
  </div>
  <div class="tab-pane" id="messages">
  <center>
    <img src="{{asset('homeCSS\img\1491358347772.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/vip?id={{$v->uid}}&vip=<?php echo time()+15768000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="settings">
  <center>
    <img src="{{asset('homeCSS\img\1491358368733.jpg')}}" width='300px;' alt="">
  </center>
    <a class="btn btn-warning" href="/geren/vip?id={{$v->uid}}&vip=<?php echo time()+31536000?>"  title="确定">确定</a>
  </div>
</div>
<input type="hidden" name="_token"         value="{csrf_token()}"/>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
      <?php }else{ ?>
      <p> <img  src="{{asset('homeCSS\img\QQ图片20170404165106.jpg')}}" </p>
      <br>
      <p>到期时间:</p>
      
      <?php 
     echo(date('Y-m-d H:i:s',($v->vip)));
      ?>
      <button type="button" class="btn btn-primary" data-toggle="modal" data-target="#myModalzc">vip续费</button>
       </center>
       <?php } ?>
      <!-- vip续费 -->
<div class="modal fade" id="myModalzc" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title" id="myModalLabel">vip充值</h4>
      </div>
      <div class="modal-body">
          

<!-- 月份选择-->
<ul class="nav nav-tabs">
  <li><a href="#home" data-toggle="tab">一个月</a></li>
  <li><a href="#profile" data-toggle="tab">两个月</a></li>
  <li><a href="#messages" data-toggle="tab">半年</a></li>
  <li><a href="#settings" data-toggle="tab">一年</a></li>
</ul>
<!--二维码-->
<div class="tab-content">
  <div class="tab-pane active" id="home">
  <center>
    <img src="{{asset('homeCSS\img\1491358301973.jpg')}}" width='300px;' alt="">
  </center>
      <a class="btn btn-warning" href="/geren/viip?id={{$v->uid}}&vip=2592000"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="profile">
  <center>
    <img src="{{asset('homeCSS\img\1491358329099.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/viip?id={{$v->uid}}&vip=5184000?"  title="确定">确定</a> 
  </div>
  <div class="tab-pane" id="messages">
  <center>
    <img src="{{asset('homeCSS\img\1491358347772.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/viip?id={{$v->uid}}&vip=15768000"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="settings">
  <center>
    <img src="{{asset('homeCSS\img\1491358368733.jpg')}}" width='300px;' alt="">
  </center>
    <a class="btn btn-warning" href="/geren/viip?id={{$v->uid}}&vip=31536000"  title="确定">确定</a>
  </div>
</div>
<input type="hidden" name="_token"         value="{csrf_token()}"/>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
 


   @endforeach
   <!-- 更换头像模态框 -->
      <div class="modal fade" id="myModal1" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
      <div class='line'></div>
  <div class="modal-dialog">
  @foreach($poters as $k=>$v)
    <div class="modal-content">
      <div >
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel" >更换头像</h4>
        <hr>
      </div>
      <div class="modal-body" style='height:290px;' >
        <div class="col-lg-6 col-lg-offset-3"  style='height:'>
         <form role="form" method="post" action="{{url('/geren/insert')}}"  enctype="multipart/form-data">
            <div class="form-group">
                <label>上传图片:</label>
                <input  type="file" name="portrait" value="">
            </div>
            
            <div class="form-group">
            <img style='height:200px;width:200px;' src="
            <?php
     foreach ($poters as $poter) {
  echo $poter->portrait;
}
 ?> " alt="">     

            </div>
            {{ csrf_field() }}
            <button class="btn btn-default" type="submit">提交</button>
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        </form>
        </div> 

      </div>
      <div class="modal-footer">
        
      </div>
    </div><!-- /.modal-content -->
    @endforeach
  </div><!-- /.modal-dialog -->
</div>
<!-- /.结束 -->
     </div> 
     <iframe src="#" id="uploadtarget" name="uploadtarget" frameborder="0" style="display:none;"></iframe> 
     <div class="list-wapper"> 
      <h2>账户管理</h2> 
      <div class="line"></div> 
      <ul class="menu"> 
       <li class="active" ><a href="#one" data-toggle="tab">个人信息<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
       <li><a href="#two" data-toggle="tab">播放记录<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
       <li><a href="#three" data-toggle="tab">我的收藏<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
       <li><a href="#four" data-toggle="tab">我的消息<span><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
       <li><a href="#five" data-toggle="tab">我的视频<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
       <li><a href="#six" data-toggle="tab">我的评论<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
        @foreach( $user as $k=>$v)
      <?php if(($v->auth)==3){?>
       <li><a href="#seven" data-toggle="tab">我的广告<span ><i class="glyphicon glyphicon-chevron-right"></i></span></a></li> 
          <?php }?>
       @endforeach
      </ul> 
     </div> 
    </div> 
    <div class="setting-right" > 
     <div class="setting-right-wrap wrap-boxes settings" style='margin:30px;'> 
      <div class="formBox"> 
       <div id="myTabContent" class="tab-content"> 
			<!-- 个人信息开始 -->
       <div class="tab-pane fade in active" data-toggle="dropdown" id="one"> 
			<html>
 <head></head>

  <div id="setting-profile" class="setting-wrap setting-profile"> 
   <div class="edit-info" style="display: none;"> 
    <form class="js-wapper-form"> 
    </form> 
   </div> 
   <div class="common-title">
     个人信息 
    <a href="javascript: void(0);" class="pull-right js-edit-info">
     <!-- Button trigger modal --> <button class="btn btn-default" data-toggle="modal"  data-target="#myModal"> 编辑 </button> 
     <!-- 个人信息模态框--> 
     <div class="modal fade" id="myModal" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true"> 
      <div class="modal-dialog" style="width:500px;"> 
       <div class="modal-content"> 
        <div class="modal-header"> 
         <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button> 
         <h4 class="modal-title" id="myModalLabel">编辑个人信息</h4> 
        </div> 
        <div class="modal-body" style="width:500px;"> 
         <div class="form-group"> 
         </div> 
         <div class="col-sm-7"> 
         </div> 
         <div class="form-group"> 
         </div> 
         <div class="col-sm-7"> 
         </div> 
         <div class="form-group"> 
          <div class="form-group"> 
          </div> 
         </div> 
         <div class="col-sm-7"> 
         </div> 
         <div class="form-group"> 
         </div> 
         <div class="col-sm-7"> 
          <div class="radio"></div> 
         </div> 
         <div></div> 
         <table style="width:450px;padding: 0;margin: 0;"> 
          <form class="form-horizontal" id='formtwo' role="form"></form> 
          <tbody> 
           <tr> 
            <td align="right"> <label style="width:100px;" class="col-sm-2 control-label"><span>昵称</span></label></td> 
            <td><p><input type="email" class="form-control" style='width:200px;' id="nametwo" value='      <?php
     foreach ($users as $user) {
   echo $user->nickname;
   }

 ?>'/><span ></span></p></td> 
           </tr> 
 
           <tr> 
            <td style="float:right"><label class="col-sm-3 control-label">qq</label></td> 
            <td> <input type="text"  style='width:250px;' class="form-control" id="qq" value='<?php
     foreach ($users as $user) {
   echo $user->qq;
   }

 ?>' /> </td> 
           </tr>
            <tr> 
            <td style="float:right"><label for="inputEmail3" id='email123' class="col-sm-3 control-label">email</label></td> 
            <td> <input type="email"  style='width:250px;' class="form-control" id="email" name='email' value='<?php
     foreach ($users as $user) {
   echo $user->email;
   }

 ?>' /> </td> 
           </tr>  
           <tr> 
            <td style="width:102px" align="right"> <label  style="width:100px;" class="col-sm-3 control-label">个性签名</label> </td> 
            <td> 
             {{ csrf_field() }}
              <textarea class="form-control"  style='width:300px;resize: none;' cols="50" rows="3" id='signed' name='signed' style='border:1px solid #e5e5e5;resize:none;'><?php
     foreach ($users as $user) {
    $signed=$user->signed;
    if(!empty($signed))
    {
      echo $user->signed;
    }
   }

 ?>
    </textarea>  
            </td> 
           </tr> 
           <tr></tr><tr><td></td>
           <td style="text-align:right;">
           <input class="btn btn-primary" id='zxcaaa'  type="submit" value="确定">
           
            <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button> 
           </td></tr>
          </tbody> 
         </table> 
         <div class="modal-footer"> 
         
           
         </div> 
        </div> 
       </div> 
       <!-- /.modal-content --> 
      </div> 
      <!-- /.modal-dialog --> 
     </div> 
     <!-- 模态框结束--> </a> 
   </div> 
   <div class="line"></div> 
   <div class="info-wapper"> 
    <div class="info-box clearfix"> 
     <label class="pull-left">昵称</label> 
     <div class="pull-left">
<?php
     foreach ($users as $user) {
  echo $user->nickname;
} 
 ?> <button class="btn btn-primary" data-toggle="modal" data-target="#myModalddzd">
  修改密码
</button>
     </div> 
    </div> 

<!--修改密码模态框 -->
<div class="modal fade" id="myModalddzd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">修改密码</h4>
      </div>
      <div class="modal-body">
      <!-- ==================================== -->
        @foreach($poters as $k=>$v)

      <form class="cd-form" id="formone">
       <p class="fieldset">
         <label style="width:100px;color:#ccc;">密码</label>
         <input id="passwordone" name="password" style="width:440px;" class="full-width has-padding has-border" id="signup-password" type="password"  placeholder="输入6-18位密码">
         <span></span>
       </p>

        <p class="fieldset">
         <label style="width:100px;color:#ccc;">确认密码</label>
         <input id="repasswordone" style="width:440px;" class="full-width has-padding has-border" id="signup-password" type="password"  placeholder="再次输入6-18位密码">
       <span></span>
       </p>
         <p class="fieldset">
          
           <input name="phone" type='hidden' id="phone" style="width:440px;" class="full-width has-padding has-border" id="signup-password" type="text"  value='{{$v->phone}}' readonly>
         <span></span>
         </p>

          <p class="fieldset">
           <label  style="width:400px;color:#ccc;">手机验证码</label>
           <div style="width:100%;margin-top:-30px;">
           <input id="yzm" style="width:200px;" class="full-width has-padding has-border"  type="text" placeholder="输入手机验证码">
           <button id="getcode" style="height:50px;width:100px;">获取手机验证码</button>
           <span id="yzmok"></span>
         </div>
         </p>
         {{ csrf_field() }}
       </form>
        @endforeach
        <!-- =============================================== -->
      </div>

      
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" id='zxcasdqwedd' class="btn btn-primary">修改</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
    <div class="info-box clearfix"> 
     <label class="pull-left">email</label> 
     <div class="pull-left">
 <?php
     foreach ($users as $user) {
  echo $user->email;
}
 ?>
     </div> 
    </div> 
    <div class="info-box clearfix"> 
     <label class="pull-left">qq</label> 
     <div class="pull-left">
       <?php
     foreach ($users as $user) {
  echo $user->qq;
}
 ?>
     </div> 
    </div> 
    <div class="info-box clearfix"> 
     <label class="pull-left">性别</label> 
     <div class="pull-left">
       <?php
     foreach ($users as $user) {
   $sex=$user->sex;
    if(empty($sex)){
      echo'女';
    }else{
      echo'男';
    }
}
 ?>
     </div> 
    </div> 
    <div class="info-box clearfix"> 
     <label class="pull-left">个性签名</label> 
     <div class="pull-left">
      <?php
     foreach ($users as $user) {
   $signed=$user->signed;
   if(empty($signed)){
    echo '未设置';
   }else{
   echo $user->signed;
   }
}
 ?>
     </div> 
    </div> 
   </div> 
  </div>

         </div>
		<!-- 个人信息结束 -->
		<!-- 播放记录开始 -->
         <div id="two" class="tab-pane fade"> 
                  <div class="u-container" style='margin-left: 0px;min-height:0px;'> 
   <div class="c-tab clearfix"> 
    <div class="tool-left l"> 
    播放记录
    </div> 
    <div class="tool-right r"> 

    </div> 
   </div> 
     <div class="js-course-list my-space-course study-tl"> 
      <!-- 播放记录循环 -->
       @foreach($record as $k=>$v)

      <div class="clearfix tl-item  tl-item-first"> 
       <div class="course-list course-list-m"> 
        <ul class="clearfix"> 
         <li class="course-one" data-courseid="813" data-uid="5069910"> 
          <div class="course-list-img l"> 
           <a href="#" target="_blank"> <img width="200" height="113" alt="机器学习-实现简单神经网络" src="{{$v->url}}" /> </a> 
          </div> 
          <div class="course-list-cont"> 
           <h3 class="study-hd"> <a href="#" target="_blank">{{$v->film}}</a> 
            <!-- 收藏和删除 --> 
            <div class="share-box clearfix"> 
             
             <div class="share-box-con courses-r"> 
              <a href="javascript:;" title="收藏" class="follow custom_f"><i class="icon icon-star_outline"></i></a> 
              <a href="javascript:;" title="删除" class="del"><i class="icon icon-notdisplay"></i></a> 
             </div> 
            </div> </h3> 
           <div class="study-points">
             点击量
            <span class="i-left span-common">{{$v->click}}</span> 点击量
            <span class="i-mid span-common">{{$v->record}}</span> 
           </div> 
           <div class="catog-points"> 
            <span class="i-left span-common"><a href="#">{{$v->record}}</a></span> 
            <a href="#" target="_blank" class="btn-red continute-btn">点击播放</a> 
           </div> 
          </div> </li>
        </ul>
       </div>   
      </div> 
      @endforeach
        <!-- 循环结束 -->
      </div>
      </div> 
         </div> 
	<!-- 播放记录结束 -->
         <!-- 我的收藏开始 -->
         <div id="three" class="tab-pane fade">
         
  <!-- .slider end --> 
  <div class="u-container" style='margin-left: 0px;min-height:0px;'> 
   <div class="c-tab clearfix"> 
    <div class="tool-left l"> 
     <ul id="myTab" class="nav nav-tabs"> 
      我的收藏
     </ul> 
    </div> 
   </div> 
     <div class="js-course-list my-space-course study-tl"> 
     <!-- 我的收藏循环开始 -->
 @foreach($collections as $k=>$v)  
      
      <div class="clearfix tl-item  tl-item-first"> 
       <div class="course-list course-list-m"> 
        <ul class="clearfix"> 
         <li class="course-one" data-courseid="813" data-uid="5069910" style='height:170px;'> 
          <div class="course-list-img l"> 
           <a href="http:#" target="_blank"> <img width="200" height="113" alt="机器学习-实现简单神经网络" src="{{$v->url}}" /> </a> 
          </div> 
          <div class="course-list-cont"> 
           <h3 class="study-hd"> <a href="http:#" target="_blank">{{$v->film}}</a> 
          <div class="catog-points"> 
     
            <a href="/geren/del?id={{$v->id}}"  class="btn-red continute-btn">取消收藏</a> 
           </div> 
            <!-- 收藏和删除 --> 
            <div class="share-box clearfix"> 
      
             <div class="share-box-con courses-r"> 
              
              <a href="javascript:;" title="删除" class="del"><i class="icon icon-notdisplay"></i></a> 
             </div> 
            </div> </h3> 
           <div class="study-points">
             点击量
            <span class="i-left span-common">{{$v->click}}</span> 评论量
            <span class="i-mid span-common">{{$v->record}}</span> 
           </div> 
           <div class="catog-points"> 
            <span class="i-left span-common"><a href="http:#">{{$v->content}}</a></span> 
            <a href="#" target="_blank" class="btn-red continute-btn">点击播放</a> 
           </div> 
          </div> </li>
        </ul>
       </div>   
      </div> 
      @endforeach
      <!-- 我的收藏循环结束 -->
      </div>
      </div> 
   <!-- 分页 --> 

  <!-- .container end -->  
  <!----> 
  
     <!--script--> 

</div>

	<!-- 我的收藏结束 -->
		<!-- 这是我的消息 -->
         <div id="four" class="tab-pane fade">
          <div >

<div id="notices" class="noticesPage" style='width:900px;'>
    <ul class="n-tab clearfix" >
    <li class="active">
        <a id="not_new" href="http:#">通知<span class="not-num">(1)</span></a>
    </li>
</ul>

    <div class="content" >
        
        <div class="title-bar" style='width:900px;'>
	<a class="tip-setting" href="#">通知设置</a>
   
</div>


<div class="notice-list">
     @foreach($message as $k=>$v)
    <div note-id="881012" class="notice">
       

        <div class="notice-box clearfix">
                            <p class="notice-type ">通知</p>
			
        
            <div class="notice-show-box">

                <p class="notice-con ">
                  <a target="_blank" href="#" >{{$v->message}}</a>
                </p>
                <h5 class="notice-date"><?php 
     echo(date('Y-m-d H:i:s',($v->ctime)));
      ?></h5>
                <a href="/geren/dele?id={{$v->id}}"  title="删除此通知" style="margin-left:800px;margin-top:-50px;;float:left">
                    <button type="button" class="btn btn-danger">删除</button>
                </a>
            </div>
            
        </div>
      
	</div> 
    @endforeach
</div>
    </div>
    
    
    <div id="js-setup-popl" class="setup-popl">
    <div class="setup-popl-top clearfix">
        <span class="title">通知设置</span>
        <i class="icon-close close"></i>
    </div>
    
    <div class="setup-content">
        <!-- 课程 -->
    
        <!-- 课程end -->
        <!-- 猿问 -->
        <!-- 猿问end -->
        <!-- 手记 -->
       
        <!-- 手记end -->
    </div>
    
</div>
</div>

</div>

         </div> 
         <div id="five" class="tab-pane fade">
			<!-- 消息结束 -->
  <!-- 我的视频开始--> 
  <div class="u-container" style='margin-left: 0px;min-height:0px;'> 
   <div class="c-tab clearfix"> 
    <div class="tool-left l"> 
      我的视频
    </div> 
   <button class="btn btn-default" style=" float: right;margin-top:10px;" data-toggle="modal"   data-target="#myModalzz"> 上传我的视频 </button>
   </div> 
   <!--上传视频模态框-->
<div class="modal fade" id="myModalzz" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel">上传视频</h4>
      </div>
      <div class="modal-body" style='height:400px;'>
        <div class="col-lg-6 col-lg-offset-3" >
        <form role="form" method="post" action="{{url('/geren/vio')}}" enctype="multipart/form-data">
            <div class="form-group">
                <label>视频名</label>
                <input class="form-control" type="text" name="film" value="">
                <p class="help-block"></p>
            </div>
            <div class="form-group">
                <label>视频海报</label>
                <input  type="file" name="url" value="" >
            </div>
            <div class="form-group">
                <label>视频文件</label>
                <input  type="file" name="upload" value="">
            </div>
            {{ csrf_field() }}
            <button class="btn btn-default" type="submit">提交</button>
            <button class="btn btn-default" type="reset">重置</button>
        </form>
    </div>
      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->
     <div class="js-course-list my-space-course study-tl"> 
      <!-- 我的视频遍历 -->
       @foreach($uvideo as $k=>$v)

      <div class="clearfix tl-item  tl-item-first" style='height:150px;'> 
       <div class="course-list course-list-m"> 
        <ul class="clearfix"> 
         <li class="course-one" data-courseid="813" data-uid="5069910" style='height:150px;'> 
          <div class="course-list-img l"> 
           <a href="http://www.imooc.com/learn/813" target="_blank"> <img width="200" height="100" alt="机器学习-实现简单神经网络" src="{{$v->url}}" /> </a> 
          </div> 
          <div class="course-list-cont"> 
           <h3 class="study-hd"> <a href="http://www.imooc.com/learn/813" target="_blank">{{$v->film}}</a> <?php if(empty($v->Auditing)){
            echo'正在审核中...';
            }?>

				    <div class="catog-points"> 
 
            <a href="/geren/delete?id={{$v->id}}"  class="btn-red continute-btn">删除</a> 
           </div> 
            <!-- 收藏和删除 --> 

			<div class="catog-points"> 
            
             </h3> 
           <div class="study-points">
             点击量
            <span class="i-left span-common">{{$v->click}}</span> 评论量
            <span class="i-mid span-common">{{$v->record}}</span> 

           </div> 
           <div class="catog-points"> 
            <span class="i-left span-common">
            <a href="http://www.imooc.com/u/5069910/course/813/notes">{{$v->content}}</a></span> 
            <a href="#" target="_blank" class="btn-red continute-btn">点击播放</a> 
           </div> 
          </div> </li>
        </ul>
       </div>   
      </div> 
       @endforeach
        　
  

      </div>
      </div> 
         </div> 
         <!-- 我的视频结束 -->
         <!-- 我的评论开始 -->
         <div id="six" data-toggle="dropdown" class="tab-pane fade">
         
  <div > 
   <div class="wrap"  style="width:900px;"> 
    <div class="u-container" style='margin-left: 0px;min-height:0px;'> 
     <div id="articleMain" class="article-main" style="height:270px" > 
      <ul class="clearfix toptab"> 
       <li class="tabactive"> <a href="">我的评论</a> </li> 
      </ul> 
      <div id="articlesList" class="articles-list"> 
      <!-- 我的评论开始 -->
       @foreach($vcomment as $k=>$v)
       
       <div class="list-item article-item clearfix"> 
        <h3 class="item-title"> <a target="_blank" href="" class="title-detail">{{$v->film}}</a><?php if($v->vid==4){?> <span class="original">原创</span><?php }?> </h3> 
        <!-- .share-box end --> 
        <!-- img --> 
        <div class="item-img l"> 
         <a target="_blank" href="" data-pic="58cf860900017d4607440268"> <img src="{{$v->url}}" width="210" height="130" /> </a> 
        </div> 
        <!-- text --> 
        
        <div   style="width:900px;"> 
         电影详情:<p class="item-bd">{{$v->content}}</p> 
         	<div class="item-btm clearfix" style="width:900px;"> 
         <ul class="l left-info"> 
          <li class="hd-pic"><p style="font-size:red;">我的评论:</p><a class="publisher-name" href="http://www.imooc.com/u/494742/articles" target="_blank">{{$v->message}}</a> </li> 
          <li class="teacher" title="慕课网讲师"></li> 
         </ul> 
         <div class="r right-info"> 
          <div class="favorite l" > 
           <i class="icon sns-thumb-up-outline"></i>
           <em> {{$v->click}}浏览</em> 
          </div> <br>
          <div class="favorite l"> 
           <i class="icon sns-thumb-up-outline"></i>
           <em> 19收藏</em> 
          </div> <br>
          <div class=" l"> 
           <i class="icon sns-comment"></i>
           <em> 2评论</em> 
          </div> 
         </div> 
        </div>
        </div> 
         
       </div> 
       @endforeach
       <!-- 我的评论结束 -->
       <!-- 分页 --> 
      </div>
     </div> 
    </div>
    <!-- .container end --> 
   </div>
   
   <!-- .wrap end--> 
  </div> 
  <!--script--> 
         </div> 
         <!-- 我的评论结束 -->
          <!-- 我的广告开始 -->
        <div id="seven" data-toggle="dropdown" class="tab-pane fade">
          我的广告
    <a href="javascript: void(0);" class="pull-right js-edit-info">
    <button class="btn btn-default" data-toggle="modal"  data-target="#myModalfgghfd">修改</button> 
     <button class="btn btn-default" data-toggle="modal"  data-target="#myModalfgghf"> 编辑 </button> 

     </a><div class="line"></div> 
         @foreach($ad as $k=>$v)
         <h2>广告样式:</h2>
          <?php if(!empty($v->content)){?>
          <div><img src="{{$v->content}}" alt="" style="width:1200px;height:100px;"></div>
          <?php }else{?>
            <div><p>广告页长1200px;宽100px;请最好啊哦找比例提交图片</p></div>
          <?php }?>
          <h2>广告跳转连接</h2>
          <div>{{$v->url}}</div>
          广告时限:
          <td><?php if((($v->ctime)-time())<0){echo'<p style="color:red">广告已到期</p>';}else{
     echo(date('z天',($v->ctime)-time()));}
      ?></td>
        <h2>审核状态:</h2>
          <div> <?php if(empty($v->adopt)){?><p style="color:blue">正在审核....</p><?php }else if(($v->adopt)==2){?><p style="color:red">审核未通过</p><?php }else{?> <p style="color:green">审核通过</p>
      <?php    if(empty($v->ctime)){ ?>
          <button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModalzxcvvv">广告充值</button>  </div>
         <?php }else{ ?> <button type="button" class="btn btn-success" data-toggle="modal" data-target="#myModalzxcvxvxv">广告续费</button>  <?php } }?></div>
    @endforeach

          <hr>
     
        </div>
        <!-- 我的广告结束 -->
        </div>
         </div>

<!-- 我得广告修改模态框 -->
<div class="modal fade" id="myModalfgghfd" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel" style='color:black;'>我的广告</h4>
      </div>
      <div class="modal-body" style="color:black;">
      @foreach($ad as $k=>$v)
<form class="form-horizontal"  role="form" method="post" action="{{url('/geren/add')}}"  enctype="multipart/form-data">
  <div class="form-group">
    <label for="input" class="col-sm-2 control-label">广告图片</label>
    <div class="col-sm-9">
      <input  type="file" name="content"  id='content' value="">
      <img src="{{$v->content}}" style='width:500px;height:50px;' alt="">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">跳转链接</label>
    <div class="col-sm-9">
      {{ csrf_field() }}
      <input type="text" class="form-control" id="url" name='url' placeholder="输入广告链接">
      <input type="hidden" id='adopt' name='adopt' value='0'>
      <input type="hidden" id='id' name='id' value='{{$v->id}}'>
    </div>
  </div>
   <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">确定</button>
        <hr>
      </div>
</form>

@endforeach
       
      </div>
     
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->


 <!-- 广告开通时间 -->
<div class="modal fade" id="myModalzxcvvv" tabindex="-1" role="dialog" aria-labelledby="myModalzxcvxvxv" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title" id="myModalLabel">广告开通</h4>
      </div>
      <div class="modal-body">
          

<!-- 月份选择-->
<ul class="nav nav-tabs">
  <li><a href="#f" data-toggle="tab">一个月</a></li>
  <li><a href="#d" data-toggle="tab">两个月</a></li>
  <li><a href="#s" data-toggle="tab">半年</a></li>
  <li><a href="#a" data-toggle="tab">一年</a></li>
</ul>
<!--二维码-->
<div class="tab-content">
  <div class="tab-pane active" id="f">

  <center>
    <img src="{{asset('homeCSS\img\1491358301973.jpg')}}" width='300px;' alt="">
  </center>
  
      <a class="btn btn-warning" href="/geren/bbb?id={{$v->id}}&ctime=<?php echo time()+2592000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="d">
  <center>
    <img src="{{asset('homeCSS\img\1491358329099.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/bbb?id={{$v->id}}&ctime=<?php echo time()+5184000?>"  title="确定">确定</a> 
  </div>
  <div class="tab-pane" id="s">
  <center>
    <img src="{{asset('homeCSS\img\1491358347772.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/bbb?id={{$v->id}}&ctime=<?php echo time()+15768000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="a">
  <center>
    <img src="{{asset('homeCSS\img\1491358368733.jpg')}}" width='300px;' alt="">
  </center>
    <a class="btn btn-warning" href="/geren/bbb?id={{$v->id}}&ctime=<?php echo time()+31536000?>"  title="确定">确定</a>
  </div>
</div>

<input type="hidden" name="_token"         value="{csrf_token()}"/>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

 <!-- 广告续费时间 -->
<div class="modal fade" id="myModalzxcvxvxv" tabindex="-1" role="dialog" aria-labelledby="myModalzxcvxvxv" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
      <h4 class="modal-title" id="myModalLabel">广告开通</h4>
      </div>
      <div class="modal-body">
          

<!-- 月份选择-->
<ul class="nav nav-tabs">
  <li><a href="#p" data-toggle="tab">一个月</a></li>
  <li><a href="#l" data-toggle="tab">两个月</a></li>
  <li><a href="#m" data-toggle="tab">半年</a></li>
  <li><a href="#k" data-toggle="tab">一年</a></li>
</ul>
<!--二维码-->
<div class="tab-content">
  <div class="tab-pane active" id="p">

  <center>
    <img src="{{asset('homeCSS\img\1491358301973.jpg')}}" width='300px;' alt="">
  </center>
  
      <a class="btn btn-warning" href="/geren/bbbb?id={{$v->id}}&ctime=<?php echo 2592000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="l">
  <center>
    <img src="{{asset('homeCSS\img\1491358329099.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/bbbb?id={{$v->id}}&ctime=<?php echo 5184000?>"  title="确定">确定</a> 
  </div>
  <div class="tab-pane" id="m">
  <center>
    <img src="{{asset('homeCSS\img\1491358347772.jpg')}}" width='300px;' alt="">
  </center>
     <a class="btn btn-warning" href="/geren/bbbb?id={{$v->id}}&ctime=<?php echo 15768000?>"  title="确定">确定</a>
  </div>
  <div class="tab-pane" id="k">
  <center>
    <img src="{{asset('homeCSS\img\1491358368733.jpg')}}" width='300px;' alt="">
  </center>
    <a class="btn btn-warning" href="/geren/bbbb?id={{$v->id}}&ctime=<?php echo 31536000?>"  title="确定">确定</a>
  </div>
</div>

<input type="hidden" name="_token"         value="{csrf_token()}"/>

      </div>
      <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">Close</button>

      </div>
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

<!-- 我得广告添加模态框 -->
<div class="modal fade" id="myModalfgghf" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true">
  <div class="modal-dialog">
    <div class="modal-content">
      <div class="modal-header">
        <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
        <h4 class="modal-title" id="myModalLabel" style='color:black;'>我的广告</h4>
      </div>
      <div class="modal-body" style="color:black;">
<form class="form-horizontal"  role="form" method="post" action="{{url('/geren/ad')}}"  enctype="multipart/form-data">
  <div class="form-group">
    <label for="input" class="col-sm-2 control-label">广告图片</label>
    <div class="col-sm-9">
      <input  type="file" name="content"  id='content' value="">
    </div>
  </div>
  <div class="form-group">
    <label for="inputPassword3" class="col-sm-2 control-label">跳转链接</label>
    <div class="col-sm-9">
      {{ csrf_field() }}
      <input type="text" class="form-control" id="url" name='url' placeholder="输入广告链接">
      <input type="hidden" id='adopt' name='adopt' value='0'>
    </div>
  </div>
   <div class="modal-footer">
        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
        <button type="submit" class="btn btn-primary">确定</button>
      </div>
</form>

       
      </div>
     
    </div><!-- /.modal-content -->
  </div><!-- /.modal-dialog -->
</div><!-- /.modal -->

       </div>
       </div>
        
  <script>

      zzzz.onmouseover = function()
    {
        $("#qqqq").css("top",'60px');
     
    }
    zzzz.onmouseout = function()
    {
     $("#qqqq").css("top",'-60px');
     
    }
  </script>


  <script type="text/javascript">

  	$('.menu li a').click(function(){
  		$('.menu li a').removeClass("on");
  		$(this).attr("class", "on");
		
	});
  </script>
  <script>
         //绑定表单提交事件
      zxcaaa.click(function(){
       
        //触发所有的丧失焦点事件
        $('#nametwo').trigger('blur');
      
         //检测所有字段是否正确

          $.ajaxSetup({
              headers: {
                  'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
              }
      });
        //登录ajax
        $.ajax({
          url:'/geren/xinxi',
          data:{nickname:$('#nametwo').val(),qq:$('#qq').val(),email:$('#email').val(),signed:$('#signed').val(),},
          type:'post',
          success:function(data){
            if(data== 0){
              alert('昵称有冲突');
             $('#nametwo').parent('p').find('span').html('修改失败').css('color','red');
            }else{
               location.reload();

            }
          },
          async:false
        })
       return false;
       
      })



      //用户名
       $('#nametwo').blur(function(){
         var reg = /^\w{6,18}$/;
         if(reg.test($(this).val())){
           Useris = true;
           $(this).parent('p').find('span').html('√').css('color','green');
          
         }else{
           $(this).parent('p').find('span').html('格式不正确').css('color','red');
           
           Useris = false;
         }
       })

// ===========================发送手机验证码================================================
              var i;
              $('#getcode').click(function(){

                var reg = /^1(3|4|5|7|8)\d{9}$/;
               if(reg.test($("#phone").val())){
                   $('#getcode').attr("disabled","true");
                  $.ajax({
                    url:'/geren/yzm',
                    data:{phone:$('#phone').attr('value')},
                    type:'get',
                    success:function(data){
                      alert(data);
                    },
                    async:false
                  })

                  i=10;
                  var init = setInterval(function(){
                      $('#getcode').html(i);
                      $('#getcode').attr("disabled","false");

                      if(i<=0){
                        $('#getcode').html("获取验证码");
                        $('#getcode').removeAttr("disabled");
                      clearInterval(init);
                      }
                      i--;
                  },1000);
                  
               }else{
                  $('#yzmok').html('手机号不正确').css('color','red');
                  
               }

                
             });
    //===========================================验证码验证=================================================        

               $('#yzm').blur(function(){
             
                  $.ajaxSetup({
                        headers: {
                            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                        }
                });
                $.ajax({
                  url:'/geren/contrast',
                  data:{code:$('#yzm').attr('value')},
                  type:'post',
                  success:function(data){
                    if(data==1){
                      $('#yzmok').html('√').css('color','green');
                      YzmOk = true;
                    }else{
                      $('#yzmok').html('验证码不正确').css('color','red');
                       YzmOk = false;
                    }
                  },
                  async:false
                })
             });

// =====================================================================================
        // =========================================================================================

     //注册全局变量
            var UserisOk = true;
            var PassisOk = true;
            var RePassisOk = true;
            var YzmOk = true;
          //绑定表单提交事件
          $('#zxcasdqwedd').click(function(){
            //触发所有的丧失焦点事件
         
            
           
                  $.ajaxSetup({
                        headers: {
                            'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content')
                        }
                });

                   //注册ajax
            $.ajax({
              url:'/geren/register',
              data:{password:$('#passwordone').val()},
              type:'post',
              success:function(data){
                if(data == 0){
                 $('#nameone').parent('p').find('span').html('修改失败').css('color','red');
                 
                }else{
                  alert('修改成功');
                  document.getElementById("logins").click();


                }
              },
              async:false
            })

            })


  </script>
  <script type="text/javascript">
    

  </script>


  </script>
